import { form } from './data'
function copySelectionToForm(selection) {

    // form.value.transactionId= selection[0].transactionId
    // form.value.userId= selection[0].userId
    console.log("true!")
    form.value.accountId = selection[0].accountId
    form.value.productId = selection[0].productId
    form.value.submitTime = selection[0].submitTime
    form.value.confirmDate = selection[0].confirmDate
    form.value.type = selection[0].type
    form.value.price = selection[0].price
    form.value.quantity = selection[0].quantity
    form.value.amount = selection[0].amount
    form.value.fee = selection[0].fee
    // form.value.priceDate= selection[0].priceDate
    // form.value.transWith= selection[0].transWith
    // form.value.comment=selection[0].comment

}

export { copySelectionToForm }